#-- coding:utf-8 --
# reids RDB 和 AOF 测试代码


import redis

redisclient = redis.StrictRedis(host='127.0.0.1',port=6379)


redisclient.set("n1","zs")
redisclient.set("n2","ww")
redisclient.set("n3","zl")
redisclient.set("n4","sq")

print(redisclient.get("n1"))
print(redisclient.get("n2"))
print(redisclient.get("n3"))
print(redisclient.get("n4"))


